<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    
    <h:head>
        <meta http-equiv="Content-Type" 
              content="text/html; charset=UTF-8" />
        <h:outputStylesheet library="css" name="bootstrap.min.css"/>
        <title>Frontend</title>
    </h:head>
    
    <h:body>
    
    
    <div class="container" style="padding-top:40px;">

	      <!-- Static navbar -->
	      <div class="navbar navbar-default" role="navigation">
	        <div class="navbar-header">
	          <h:link class="navbar-brand" outcome="/frontend/index" value="TravelDream Frontend" />
	        </div>
	        <div class="navbar-collapse collapse">
				<ul class="nav navbar-nav">
				  <li><h:link value="Home"     outcome="/frontend/index" /></li>
				  <li><h:link value="Profilo"    outcome="/frontend/profile/index" /></li>
				</ul>
	          
		        <ul class="nav navbar-nav navbar-right" style="padding-right:10px;">
			      <li class="navbar-text">Benvenuto #{authentication.authenticatedUser.name}!</li>
			      <li class="">
			      	<h:form><h:commandLink value="Logout" action="#{authentication.logoutAction}" /></h:form>
			      </li>
			    </ul>
		    
	        </div><!--/.nav-collapse -->

	      </div>
	      
	
	      <div id="" class="l">
             <ui:insert name="content">Main Content</ui:insert>
          </div>
	
	    </div> <!-- /container -->
       
    </h:body>
</html>
